const Mock = require('mockjs');
const Random = Mock.Random;

let random2 = () => {
  let arr = [];
  for (let i = 1; i <= 10; i++) {
    arr.push({
      cname: Random.cname(),
      'cname2|1-2': Random.cname(),
      name: Random.name(),
      time: Random.time(),
      date: Random.date(),
      text: Random.ctitle()
    });
  }
  return arr;
};

module.exports = Mock.mock({
  'list|10': [
    {
      name: '123'
    }
  ],
  'random|10': [
    {
      name: Random.cname()
    }
  ],
  random2: random2()
});
